<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Duke Admin</title>
    <meta name="description" content="duke admin">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/png" href="/static/DukeAdmin/image/ico.png">
    <script src="/static/Dadmin/assets/js/echarts.min.js"></script>
    <link rel="stylesheet" href="/static/Dadmin/assets/css/amazeui.min.css" />
    <link rel="stylesheet" href="/static/Dadmin/assets/css/amazeui.datatables.min.css" />
    <link rel="stylesheet" href="/static/Dadmin/assets/css/app.css">
    <link rel="stylesheet" href="/static/DukeAdmin/css/base.css">
    <script src="/static/Dadmin/assets/js/jquery.min.js"></script>

</head>

<body data-type="login">
    <script src="/static/Dadmin/assets/js/theme.js"></script>
    <div class="am-g tpl-g">
        <!-- 风格切换 -->
        <div class="tpl-skiner">
            <div class="tpl-skiner-toggle am-icon-cog">
            </div>
            <div class="tpl-skiner-content">
                <div class="tpl-skiner-content-title">
                    选择主题
                </div>
                <div class="tpl-skiner-content-bar">
                    <span class="skiner-color skiner-white" data-color="theme-white"></span>
                    <span class="skiner-color skiner-black" data-color="theme-black"></span>
                </div>
            </div>
        </div>
        <div class="tpl-login">
            <div class="tpl-login-content">
                <div class="tpl-login-logo">

                </div>



                <form action="/users/login/" method="post" class="am-form am-form-horizontal">{% csrf_token %}
                    <div class="am-form-group">
                        <div class="am-u-sm-12">
                            <input type="text" class="tpl-form-input" id="username" name="username" placeholder="请输入账号">
                        </div>
                    </div>

                    <div class="am-form-group">
                        <div class="am-u-sm-12">
                            <input type="password" class="tpl-form-input" id="password" name="password" placeholder="请输入密码">
                        </div>
                    </div>
{#                    <div class="am-form-group tpl-login-remember-me">#}
{#                        <input id="remember-me" type="checkbox">#}
{#                        <label for="remember-me">#}
{##}
{#                        记住密码#}
{#                         </label>#}
{#                    </div>#}
                    <div class="am-form-group">
                        <div class="am-u-sm-9">
                            <input type="text" class="tpl-form-input " id="verificationcode" name="verificationcode" placeholder="验证码">
                        </div>
                        <div class="am-u-sm-3">
                            <img src="/users/verificationcode/"  style="cursor:pointer" alt="" onclick="refresh_check_code(this)" >
                        </div>
                    </div>




                    <div class="am-form-group">

                        <button type="submit" class="am-btn am-btn-primary  am-btn-block tpl-btn-bg-color-success  tpl-login-btn">提交</button>

                    </div>
                </form>
            </div>
        </div>
    </div>
    <script src="/static/Dadmin/assets/js/amazeui.min.js"></script>
    <script src="/static/Dadmin/assets/js/app.js"></script>
<script>
   function refresh_check_code(ths) {
     ths.src += '?';
     //src后面加问好会自动刷新验证码img的src
    }
</script>
</body>

</html>